﻿@model NOSDC.Models.SponsorViewModel

@section Title{
    @Html.CreatePageTitle("Sponsors")
}

@section MetaTags{
    @Html.CreateMetaDescription("NOSDC sponsorship")
}
@section Right{
    @{Html.RenderAction("GetUpcomingEvent", "Events");}
    @{Html.RenderAction("RecentJobs", "Jobs");}
}

@section JavaScript{
    <script type="text/javascript">
        $("#Sponsors").addClass("selected");
    </script>
}
<div class="newsPosting">
    <div>
        <div class="leftIcon">
        </div>
        <div class="titleWrapper">
            <div class="newsTitle">Our Sponsors</div>
        </div>
    </div>
    <div class="rightIcon">
    </div>
</div>
<br />
<div id="sponsorList">
    @if(Model.Sponsors.Count > 0) {
    foreach (var sponsor in Model.Sponsors) {
        <div style="padding: 10px; border-bottom: 1px solid #ddd;">
            <div style="padding-right: 10px;">
                <a href="@if (sponsor.Link != null) { @sponsor.Link }"><img src="@Url.Content("~/UploadedFiles/" + @sponsor.Logo)" alt="@sponsor.Name" /></a></div>
            <div style="padding-top: 10px;">@Html.Raw(sponsor.Description)</div>
        </div>
    }
    }
    else
    {
    <div style="height:270px; vertical-align:middle; text-align:center; margin-top:100px; color:#236B8E; font-weight:bold;font-size:14px;">
        We do not currently have any sponsors. If you are interested in sponsoring our group, please @Html.ActionLink("contact us!", "ContactUs", "Home") 
    </div>
    }
</div>
<br />